import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/base.css'
import '@/assets/css/font-awesome.css'
import Layout from './Layout'
import CMove from './CMove'
import CPopButton from './CPopButton'
import CPageTable from './CPageTable'
import CButton from './CButton'
import CAvatarUpload from './CAvatarUpload'
import CSelect from './CSelect'
import CTree from './CTree'
import CPageError from './CPageError'
import CIconSeat from './CIconSeat'
import CCopy from './CCopy'
import EasyButton from './EasyButton'
import CPercentInput from './CPercentInput'
import CConfirmButton from './CConfirmButton'
import CDatetimePicker from './CDatetimePicker'
import CMarkPolicy from './CMarkPolicy'

// 在install里面添加要用的组件
function install (Vue) {
  Vue.use(ElementUI)
  Vue.use(Layout)
  Vue.use(CMove)
  Vue.use(CPopButton)
  Vue.use(CPageTable)
  Vue.use(CButton)
  Vue.use(CAvatarUpload)
  Vue.use(CSelect)
  Vue.use(CTree)
  Vue.use(CPageError)
  Vue.use(CIconSeat)
  Vue.use(CCopy)
  Vue.use(EasyButton)
  Vue.use(CPercentInput)
  Vue.use(CConfirmButton)
  Vue.use(CDatetimePicker)
  Vue.use(CMarkPolicy)
}

/*
 * 使用方式
 * 在vue文件中
 * <c-xxx></c-xxx>
 */

export default {
  install
}
